import {createApp} from 'vue'
import {Dialog, Loading, Notify, Quasar} from 'quasar'
import quasarLang from 'quasar/lang/zh-CN'

// Import Quasar css
import 'quasar/src/css/index.sass'
import './index.css'
import iconSet from 'quasar/icon-set/fontawesome-v6'
import '@quasar/extras/fontawesome-v6/fontawesome-v6.css'

// Assumes your root component is App.vue
// and placed in same folder as main.js
import App from './App.vue'

import router from './routers/index'

import {createPinia} from "pinia"
//import {install} from '@icon-park/vue-next/es/all';

const pinia = createPinia()

const myApp = createApp(App)

// Install 注册iconPark
//install(myApp); // use default prefix 'icon', eg: icon is People, name is icon-people.
//install(myApp, 'i'); // 使用自定义前缀‘i’，例如：图标是人物，名称是i-人物.

myApp.use(pinia)

myApp.use(Quasar, {
    plugins: {Notify, Dialog, Loading}, // import Quasar plugins and add here
    lang: quasarLang,
    iconSet: iconSet,

    config: {
        notify: { /* look at QuasarConfOptions from the API card */}
    },

})

//确保 _use_ 路由实例使
//整个应用支持路由。
myApp.use(router)

// Assumes you have a <div id="app"></div> in your index.html
myApp.mount('#app')